package springbook.model;

import lombok.Data;

import java.util.List;
//用于前端给后端发送的数据

@Data
public class RequestPage {

    private Integer currentPage=1;
    private Integer pageSize=10;

    public  Integer getOffset() {
        return (currentPage - 1) * pageSize;
    }
}
